<template>
    <div class="node-container">
        <div class="topText">{{ topText }}</div>
        <div class="connecting-line-node"></div>
        <div class="bottomText">{{ bottomText }}</div>
    </div>
</template>

<script>
export default {
    name: 'connecting-line-node',
    props: {
        topText: String,
        bottomText: String
    }
}
</script>

<style scoped lang="less">
.node-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;

    .topText, .bottomText {
        overflow-wrap: break-word;
        font-size: 12px;
        white-space: nowrap;
        height: 20px;
    }

    .topText {
        color: rgba(0, 0, 0, 0.45);
        padding-bottom: 10px;
    }

    .bottomText {
        color: rgba(0, 0, 0, 0.85);
        padding-top: 10px;
    }
    .connecting-line-node {
        width: 12px;
        height: 12px;
        border: 2px solid rgba(244, 247, 250, 1);
        background-color: rgba(79, 104, 232, 1);
        box-shadow: 2px 2px 4px 0 rgba(8, 21, 87, 0.37);
        border-radius: 50%;
    }
}
</style>
